<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title>AddIODetails.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
function checkblnk(f)
   {
     fion =f.ion.value;
     fed =f.T2.value;
     if((fion.length==0)||(fed.length==0))
       {
         alert("pls fill all the fields")
         
            if(fion.length==0)
                   {
                         document.getElementById("lion").innerHTML="<font color=blue> Enter name </font>"
                    }

			  if(fed.length==0)
                   {
                         document.getElementById("led").innerHTML="<font color=blue>Enter effect date</font>"
                    }
             return false;
            }
            
            
    } 
        


</script>
<script language="javascript" type="text/javascript" src="datetimepicker_css.js"></script>


 
  <link href="css/style1.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="main-out">
<div class="main">
<div class="page">
<div class="top">
<div class="header">
<div class="header-top">
<%@include file="TopHead.jsp" %>
</div>
<div class="topmenu">
<%@include file="TopMenu.jsp" %>
</div>
<div class="">
<img src="images/d3.gif">
</div>
</div>
<div class="content">
<div class="content-left">
<div class="row1">
<div class="img">&nbsp;</div>
<div class="welcome">
<h1 class="title">Welcome to POlice Seva<span></span></h1>
<p>




</p>

<% 
  Object ob=request.getAttribute("CODE");
  Object ob1=request.getAttribute("jlt");
  
  %>
<html:form action="psiicioa" onsubmit="retun checkblnk(this)">
<div align="center">
	<table border="0" width="100%">
		<tr>
			<td colspan="2" align="center">ADD IO DETAILS</td>
		</tr>
		<%
		  if(ob1!=null)
		  {
		 %>
		<tr>
			<td width="23%">Investigation Officer Name</td>
			<td width="76%"><html:text property="ion" value=""></html:text> </td>
			<td><label id="lion"></label></td>
		</tr>
		<tr>
			<td width="23%">Effect Date</td>
			<td width="76%">
<input type="text" name="T2" id="demo3" size="20" readonly="readonly" onfocus="javascript:NewCssCal('demo3','ddMMMyyyy','arrow')" value="">
</td>
			<td><label id="led"></label></td>
		</tr>
		<tr>
			<td colspan="2"><html:submit property="psiiciop" value="ADDIO"></html:submit> </td>
		</tr>
		
		<tr>
			<td colspan="2"><%=ob1.toString() %></td>
		</tr>
		
		<%if(ob!=null)
		{
		 %>
		<tr>
			<td width="23%">IO Code Created</td>
			<td width="76%"><html:text property="ioc" value="<%=ob.toString() %>" readonly="true"></html:text> </td>
		</tr>
		
		<%}}
		
		else
		{
		 %>
		 
		 <tr>
			<td width="23%">Investigation Officer Name</td>
			<td width="76%"><html:text property="ion"></html:text> </td>
			<td><label id="lion"></label></td>
		</tr>
		<tr>
			<td width="23%">Effect Date</td>
			<td width="76%">
<input type="text" name="T2" id="demo3" size="20" readonly="readonly" onfocus="javascript:NewCssCal('demo3','ddMMMyyyy','arrow')" >
</td>
			<td><label id="led"></label></td>
		</tr>
		<tr>
			<td colspan="2"><html:submit property="psiiciop" value="ADDIO"></html:submit> </td>
		</tr>
		
		
		<%} %>
		 
	</table>
</div>
</html:form>





</div>
</div>

</div>
<div class="content-right">
<%@include file="SideMenu.jsp" %>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
</div>
</div>
<div class="bottom">
<!--DO NOT Remove The Footer Links-->
<p><%@include file="Footer.jsp"  %><br>
<!--DO NOT Remove The Footer Links-->
</p>
</div>
</div>
</div>
</div>
</body>
</html:html>
